//
//  CellForVideoRecommendation.m
//  世界
//
//  Created by dllo on 16/2/25.
//  Copyright © 2016年 admin. All rights reserved.
//

#import "CellForVideoRecommendation.h"

@implementation CellForVideoRecommendation



- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self != nil)
    {
        self.contentView.backgroundColor = [UIColor clearColor];
        
        self.backgroundColor = [UIColor clearColor];
        
        self.lableForLength = [[UILabel alloc] init];
        
        [self.contentView addSubview:self.lableForLength];
        
        self.lableForTitle = [[UILabel alloc] init];
        
        [self.contentView addSubview:self.lableForTitle];
        
        self.imgViewForCover = [[UIImageView alloc] init];
        
        [self.contentView addSubview:self.imgViewForCover];
        
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    self.imgViewForCover.frame = CGRectMake(10, 10, 80, 80);
    
    self.lableForLength.frame = CGRectMake(100, 65, self.contentView.frame.size.width - 10 - 80 - 20, 20);
    
    self.lableForTitle.frame = CGRectMake(100, 10, self.contentView.frame.size.width - 10 - 80 - 20, 50);
}




- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
